package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.MallBanner;
import com.novax.ex.common.base.BaseMapper;import org.apache.ibatis.annotations.Param;

/**
 * @Description
 * @Author zhaolei
 * @Date 5/4/23 4:15 PM
 * @Version 1.0
 */
public interface MallBannerMapper extends BaseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MallBanner record);

    int insertSelective(MallBanner record);

    MallBanner selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MallBanner record);

    int updateByPrimaryKey(MallBanner record);

    /**
     * Description: 根据语言查询数据
     *
     * @param language
     * @return com.novax.ex.activity.infrastructure.entity.MallProductTitleLanguage
     * @author Deucalion@novax.email
     * @date 2023/3/16 10:09
     */
    MallBanner selectByLanguage(@Param("language") String language);

    /**
     * Description: 数据软删除
     *
     * @author Deucalion@novax.email
     * @date 2023/3/16 10:15
     */
    int removeById(@Param("id") Long id, @Param("adminId") Long adminId);
}